#!/usr/bin/env bash
# ML4W Theme Glass

# Set waybar
echo "/ml4w-glass;/ml4w-glass/default" > $HOME/.config/ml4w/settings/waybar-theme.sh
$HOME/.config/waybar/launch.sh &

# Set nwg-dock-hyprland
echo "glass" > $HOME/.config/ml4w/settings/dock-theme
$HOME/.config/nwg-dock-hyprland/launch.sh &

# Set swaync
echo '@import "themes/glass/style.css";' > $HOME/.config/swaync/style.css
swaync-client -rs

# Set wlogout
echo '@import "themes/glass/style.css";' > $HOME/.config/wlogout/style.css

# Set launcher
echo 'rofi' > $HOME/.config/ml4w/settings/launcher

# Set walker theme
echo 'glass' > $HOME/.config/ml4w/settings/walker-theme

# Set Window Border
echo 'source = ~/.config/hypr/conf/windows/glass.conf' > $HOME/.config/hypr/conf/window.conf

# Set rofi
echo '* { border-width: 1px; }' > $HOME/.config/ml4w/settings/rofi-border.rasi

echo ":: Theme set to Glass"